// pages/11_learn_nav/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    name: "navigate-name",
    age: 39,
    message: "navigate-router-content"
  },
  onNavTap() {
    const name = this.data.name
    const age = this.data.age

    // 页面导航操作
    wx.navigateTo({
      url: `/pages2/detail/detail?name=${name}&age=${age}`,
      events: {
        backEvent(data) {
          console.log("back: ", data);
        },
        createEventFn(data) {
          console.log("event: ", data);
        }
      }
    })
  }
  
})